Fix margin-start/end property implementation
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Feb 2014 01:25:12 +0000 (20:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Feb 2014 01:27:30 +0000 (20:27 -0500)
The properties are declared read-write, but only the setter
was hooked up. This was leading to criticals in test apps using
the prop-editor.c code. Complete the implementation by adding the
getter side too.

gtk/gtkwidget.c

index 70b49ceaee13ee0cd64ed46f518ff1d7622af6aa..0807ce18a4dd67ddf5f0b96d405c30f953fef6d2 100644 (file)
@@ -3909,6 +3909,12 @@ gtk_widget_get_property (GObject         *object,
       g_value_set_int (value, gtk_widget_get_margin_right (widget));
       G_GNUC_END_IGNORE_DEPRECATIONS;
       break;
+    case PROP_MARGIN_START:
+      g_value_set_int (value, gtk_widget_get_margin_start (widget));
+      break;
+    case PROP_MARGIN_END:
+      g_value_set_int (value, gtk_widget_get_margin_end (widget));
+      break;
     case PROP_MARGIN_TOP:
       g_value_set_int (value, gtk_widget_get_margin_top (widget));
       break;